package com.mkjb.entity;

import com.mkjb.utils.UuidGenerator;

import java.io.Serializable;

/**
 * 权限
 * Created by DingJie on 2017/3/27.
 */
public class Permission implements Serializable {
    private String uuid = UuidGenerator.generate();
    private String permissionName;
    private Role role;//一个权限对应一个角色
    private String roleUuid;

    public Permission() {
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getRoleUuid() {
        return roleUuid;
    }

    public void setRoleUuid(String roleUuid) {
        this.roleUuid = roleUuid;
    }
}
